{literal}
<script type="text/javascript">
    $(document).ready(function(){
        $("#form_tarifa").validate({
            rules: {
                mes: { required: true, minlength: 2, number: true},
                ano: { required: true, minlength: 4, number: true},
                valor: { required: true, maxlength: 6}
            },
            messages: {
                mes: { required: "Obrigatorio", minlength: "O numero precisa ter 2 caracteres", number: "Apenas numeros" },
                ano: "Obrigatorio",
                valor: { required: "Obrigatorio", maxlength: "6 e o numero maximo de algarismos" }
            },
            submitHandler: function(form) {
				jqAjaxForm(form, "div_mensagem");
			}
        });
        
        $("#valor").priceFormat();
        
    }); //fecha $(
    
</script>
{/literal}
<form id="form_tarifa" name="form_tarifa" method="post" action="{$_site.url}{$acao}">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mvTituloFundo">
				  <tr>
					<td>
					{if $banco->id > 0}Editar{else}Nova{/if} Tarifa
					<input type="hidden" name="cod" value="{$tarifaigpm->id}"/>
					</td>
				  </tr>
				</table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">                
                <tr>
                  <td class="contForm">
                  
                  <table width="100%" border="0" cellspacing="3" cellpadding="0">
                      <tr>
                        <td width="30%" valign="top" class="fundoTituloForm">M&ecirc;s:</td>
                        <td class="bordaFormResp"><input name="mes" type="text" class="formulario" id="mes" value="{$tarifaigpm->int_anomes|substr:4:2}" maxlength="2"/></td>
                      </tr>
                      <tr>
                        <td width="30%" valign="top" class="fundoTituloForm">Ano:</td>
                        <td class="bordaFormResp"><input name="ano" type="text" class="formulario" id="ano" value="{$tarifaigpm->int_anomes|substr:0:4}" maxlength="4"/></td>
                      </tr>
                      <tr>
                        <td valign="top" class="fundoTituloForm">Valor(%):</td>
                        <td width="70%" class="bordaFormResp"><select name="sinal" id="sinal" class="formulario"><option value="+">+</option><option value="-" {if $tarifaigpm->flt_valor<0} selected="selected"{/if}>-</option></select><input name="valor" type="text" class="formulario" id="valor" maxlength="6" value="{$tarifaigpm->flt_valor}" /></td>
                      </tr>
                  </table>
                  
                  </td>
                </tr>
        <tr>
                  <td class="paddingTop15 paddingBottom15" align="center"><!-- === Botões ( Salvar e Limpar ) === -->
                      <span class="paddingRight15">
                      	<input type="submit" value="Salvar" class="botao">
                      </span>
                    <span class="paddingRight15">
                    <input name="limpar" type="reset" id="Limpar" value="Limpar" class="botao" />
                    </span>
                    <input type="button" value="Cancelar" onclick="cancelar(); return false;" class="botao">
                      <!-- Final === Botões ( Salvar e Limpar ) === -->                      </td>
                </tr>
              </table>	
    </form>
